package jishiti.counttxtfile;

import java.io.*;

/**
 * 将count文件用程序读出来，并打印到控制台上
 */
public class CountTxtToPrint {
    public static void main(String[] args) throws IOException {
//    创建字符缓冲流对象
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("D:\\final\\day10\\机试题\\机试题\\count源文件.txt")));
//        读取数据-按行读取
        String line = null;
        while ((line = br.readLine())!=null){
            System.out.println(line);
        }
        br.close();
    }
}
